#ifndef OA_CORE_CLOCK_H
#define OA_CORE_CLOCK_H

#include "libs.h"
#include "core/system.h"
#include "core/timer.h"

namespace core {
	class Clock:
		public System
	{
	public:
		Clock();
		virtual ~Clock();
		
		void update();

		float delta() const;
		float getCurrentTime();

		float fps() const;

	private:
		Timer<float> mTimer;
		
		float mLastTime;
		float mLastFPSTime;
		float mDelta;
		float mFPS;
	};
}

#endif
